projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c51e0
)
(init_system_name): Retry gethostbyname only 5 times
author
Richard M. Stallman
<rms@gnu.org>
Fri, 20 Sep 1996 06:11:20 +0000
(06:11 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 20 Sep 1996 06:11:20 +0000
(06:11 +0000)
and don't sleep after the last time.
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index a7026b878245dc49b7cc2273b1ba4081a823943c..62a0194cdf1de0ebc509514b7b6a9f3eb338cbb1 100644
(file)
--- a/
src/sysdep.c
+++ b/
src/sysdep.c
@@
-2198,7
+2198,7
@@
init_system_name ()
{
struct hostent *hp;
int count;
- for (count = 0;
count < 10
; count++)
+ for (count = 0;; count++)
{
#ifdef TRY_AGAIN
h_errno = 0;
@@
-2208,6
+2208,8
@@
init_system_name ()
if (! (hp == 0 && h_errno == TRY_AGAIN))
#endif
break;
+ if (count >= 5)
+ break;
Fsleep_for (make_number (1), Qnil);
}
if (hp)